package com.googlecode.jtoy.patterns.nullobject;

import static org.junit.Assert.*;

import java.util.Date;

import org.junit.Test;

/**
 * @author shangxj
 * @date Jun 27, 2011 1:29:11 PM
 */
public class TestNullObject {

	@Test
	public void testNull() {

		Employee emp = DB.getEmployee("Bob");

		if (emp.isTimeToPay(new Date())) {
			fail();
		}

		assertEquals(Employee.NULL, emp);
	}

}
